package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GrowthMonitMapper;
import com.ruoyi.system.domain.GrowthMonit;
import com.ruoyi.system.service.IGrowthMonitService;

/**
 * 鱼类成长监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
@Service
public class GrowthMonitServiceImpl implements IGrowthMonitService 
{
    @Autowired
    private GrowthMonitMapper growthMonitMapper;

    /**
     * 查询鱼类成长监测
     * 
     * @param id 鱼类成长监测主键
     * @return 鱼类成长监测
     */
    @Override
    public GrowthMonit selectGrowthMonitById(Long id)
    {
        return growthMonitMapper.selectGrowthMonitById(id);
    }

    /**
     * 查询鱼类成长监测列表
     * 
     * @param growthMonit 鱼类成长监测
     * @return 鱼类成长监测
     */
    @Override
    public List<GrowthMonit> selectGrowthMonitList(GrowthMonit growthMonit)
    {
        return growthMonitMapper.selectGrowthMonitList(growthMonit);
    }

    /**
     * 新增鱼类成长监测
     * 
     * @param growthMonit 鱼类成长监测
     * @return 结果
     */
    @Override
    public int insertGrowthMonit(GrowthMonit growthMonit)
    {
        return growthMonitMapper.insertGrowthMonit(growthMonit);
    }

    /**
     * 修改鱼类成长监测
     * 
     * @param growthMonit 鱼类成长监测
     * @return 结果
     */
    @Override
    public int updateGrowthMonit(GrowthMonit growthMonit)
    {
        return growthMonitMapper.updateGrowthMonit(growthMonit);
    }

    /**
     * 批量删除鱼类成长监测
     * 
     * @param ids 需要删除的鱼类成长监测主键
     * @return 结果
     */
    @Override
    public int deleteGrowthMonitByIds(Long[] ids)
    {
        return growthMonitMapper.deleteGrowthMonitByIds(ids);
    }

    /**
     * 删除鱼类成长监测信息
     * 
     * @param id 鱼类成长监测主键
     * @return 结果
     */
    @Override
    public int deleteGrowthMonitById(Long id)
    {
        return growthMonitMapper.deleteGrowthMonitById(id);
    }
}
